package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceRoomVMapper;
import com.ruoyi.system.domain.DeviceRoomV;
import com.ruoyi.system.service.IDeviceRoomVService;

/**
 * 设备房间VService业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
@Service
public class DeviceRoomVServiceImpl implements IDeviceRoomVService 
{
    @Autowired
    private DeviceRoomVMapper deviceRoomVMapper;

    /**
     * 查询设备房间V
     * 
     * @param id 设备房间V主键
     * @return 设备房间V
     */
    @Override
    public DeviceRoomV selectDeviceRoomVById(Long id)
    {
        return deviceRoomVMapper.selectDeviceRoomVById(id);
    }

    /**
     * 查询设备房间V列表
     * 
     * @param deviceRoomV 设备房间V
     * @return 设备房间V
     */
    @Override
    public List<DeviceRoomV> selectDeviceRoomVList(DeviceRoomV deviceRoomV)
    {
        return deviceRoomVMapper.selectDeviceRoomVList(deviceRoomV);
    }

    /**
     * 新增设备房间V
     * 
     * @param deviceRoomV 设备房间V
     * @return 结果
     */
    @Override
    public int insertDeviceRoomV(DeviceRoomV deviceRoomV)
    {
        return deviceRoomVMapper.insertDeviceRoomV(deviceRoomV);
    }

    /**
     * 修改设备房间V
     * 
     * @param deviceRoomV 设备房间V
     * @return 结果
     */
    @Override
    public int updateDeviceRoomV(DeviceRoomV deviceRoomV)
    {
        return deviceRoomVMapper.updateDeviceRoomV(deviceRoomV);
    }

    /**
     * 批量删除设备房间V
     * 
     * @param ids 需要删除的设备房间V主键
     * @return 结果
     */
    @Override
    public int deleteDeviceRoomVByIds(Long[] ids)
    {
        return deviceRoomVMapper.deleteDeviceRoomVByIds(ids);
    }

    /**
     * 删除设备房间V信息
     * 
     * @param id 设备房间V主键
     * @return 结果
     */
    @Override
    public int deleteDeviceRoomVById(Long id)
    {
        return deviceRoomVMapper.deleteDeviceRoomVById(id);
    }
}
